<?php
/**
 * author        : ${USER}
 * createTime    : 2021/11/13 21:21
 * version       : 1.0
 * filename      : CategoryRequest.php
 */

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class CategoryRequest extends FormRequest
{
    public function rules(): array
    {
        return [
            'name' => 'required',
            'image' => 'required',
            'description' => 'required'

        ];
    }

    public function authorize(): bool
    {
        return true;
    }
}